import { ReactNode } from "react";
import { Button, Text, View } from "react-native";

export default function APP(){
  return(
    <View>
      <Text>==========</Text>
      <Child>
        <Button title="按钮"/>;
      </Child>
      <Text>==========</Text>
    </View>
  )
}
function Child({children}:{children:ReactNode}){
  return(
    <View>
      <Text>子组件.....</Text>
      {children}
      <Text>子组件.....</Text>
    </View>
  )
}